import React, { Component } from 'react';
import img1 from '../images/21_03.jpg'
import './singList.css/header.css'
import Banner from './banner'
import {withRouter} from  "react-router-dom"

class Header extends Component {
    constructor(){
        super()
        this.state={

        }
    }
    go(){
        this.props.history.push('/find')
    }
    render() {
        return (
            <div className='singlist'>
                 <img src={img1} alt="" className='singlist-img1' onClick={this.go.bind(this)}/> 
                 <h2>歌单广场</h2>   
                 <Banner/>    
            </div>
        )
    }
}

export default withRouter(Header)